package com.javatip.project.detection.detectionTrainMission.service;

import com.javatip.framework.web.domain.AjaxResult;
import com.javatip.project.detection.detectionTrainMission.domain.DetectionTrainMission;
import java.util.List;

/**
 * 目标检测训练任务 服务层
 * 
 * @author 袁伟
 * @date 2024-09-27
 */
public interface IDetectionTrainMissionService 
{
	/**
     * 查询目标检测训练任务信息
     * 
     * @param id 目标检测训练任务ID
     * @return 目标检测训练任务信息
     */
	public DetectionTrainMission selectDetectionTrainMissionById(Integer id);
	
	/**
     * 查询目标检测训练任务列表
     * 
     * @param detectionTrainMission 目标检测训练任务信息
     * @return 目标检测训练任务集合
     */
	public List<DetectionTrainMission> selectDetectionTrainMissionList(DetectionTrainMission detectionTrainMission);
	
	/**
     * 新增目标检测训练任务
     * 
     * @param detectionTrainMission 目标检测训练任务信息
     * @return 结果
     */
	public int insertDetectionTrainMission(DetectionTrainMission detectionTrainMission);
	
	/**
     * 修改目标检测训练任务
     * 
     * @param detectionTrainMission 目标检测训练任务信息
     * @return 结果
     */
	public int updateDetectionTrainMission(DetectionTrainMission detectionTrainMission);
		
	/**
     * 删除目标检测训练任务信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteDetectionTrainMissionByIds(String ids);

    public AjaxResult startSingleDetectionTrainMission(Integer id);

    public List<DetectionTrainMission> selectSelfDetectionTrainMissionList(int userId, DetectionTrainMission detectionTrainMission);

	public List<DetectionTrainMission> selectPublicAndSelfDetectionTrainMissionList(int userId, DetectionTrainMission detectionTrainMission);
}
